package com.pluser.mq.engine;

import java.util.Map;

/**
 * MessageComparator interface
 * @author pluser
 * @version 1.0
 * @date 2014-05-03
 * @modifiedHis
 *
 * @description
 * define get message from queue with messsage comparator,
 * on xml data in queue, it use compare message whether is valid
 */
public interface IMessageComparator {

	/**
	 * listening receiver queue, compare message whether is valid
	 * @param msgBytes byte of message from receiver queue
	 * @param orgCmpMap original compare data container that is xml node's value
	 * @return
	 */
	public boolean compare(byte[] msgBytes, Map<String, String> orgCmpMap);
}
